<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="weburl"></web-view>
	</view>
</template>
<script setup>
	import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
	import { useRoute } from 'vue-router'
	
	const { proxy } = getCurrentInstance()
	
	const route = useRoute()
	const webviewStyles = reactive({
	  progress: {
	    color: '#ff6a6c' // 进度条颜色
	  }
	})
	const weburl = ref('')
	
	onMounted((res) => {
		weburl.value = route.query.url
		
		uni.setNavigationBarTitle({
			title: `${proxy.$config.appabbr} ${route.query.title || ''}`
		})
	})
</script>

<style lang="scss">
</style>
